/**
 * Created by vincent on 2017/9/28.
 */
moduleResource.factory('EventResource', function (CambioResource, $$CambioConfig) {
    const resource = $$CambioConfig.RESOURCE_URL + '/event';
    return CambioResource(resource, {}, {
        queryPage: {
            url: resource + '/:type/queryList' + $$CambioConfig.QUERY_URI,
            method: 'POST'
        },
        findById: {
            url: resource + '/findById/:eventId',
            method: 'GET'
        },
        findByKey: {
            url: resource + '/findByKey',
            isArray: true,
            method: 'POST'
        },
        add: {
            url: resource + '/add',
            method: 'POST'
        },
        update: {
            url: resource + '/update',
            method: 'PUT'
        }
    });
});